import 'package:flutter/material.dart';

mainSubmitButton(String title, Function()? onPressed, BuildContext context, Color color) {
  return Container(
    width: double.infinity,
    child: ElevatedButton(
      onPressed: onPressed,
      child: Text(title, style: TextStyle(color: Colors.white, fontSize: 18),),
      style: ButtonStyle(
          minimumSize: MaterialStateProperty.all(Size(200, 55)),
          backgroundColor: MaterialStateProperty.all(color),
          shape: MaterialStateProperty.all(RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(10.0), // 设置圆角弧度
          ))),
    ),
  );
}